﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
//using System.Xml.Linq;
using YouHP.Model;
using System.Collections.Generic;
using YouHP.BLL;
using YouHP.Utility;

namespace web.admin
{
    public partial class CityList : System.Web.UI.Page
    {
        public int parentId;
        protected void Page_Load(object sender, EventArgs e)
        {
            List<DistrictInfo> list = null;
            parentId = RequestTools.GetQueryInt("parentId", -1);

            list = DistrictBLL.Instance.GetDistrictListByParent(parentId);

            this.cityList.DataSource = list;
            this.cityList.DataBind();
        }
        protected void pageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            this.cityList.PageIndex = e.NewPageIndex;


        }
    }
}
